/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.space.vo;

import cn.hutool.core.util.StrUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 区域管理导出VO对象
 *
 * @author liyue
 * @date 2021-11-09 15:09:42
 */
@Data
@ColumnWidth(20)
@ApiModel(value = "房屋管理导出VO对象")
public class ExcelExportHouseVO {

	private static final long serialVersionUID = 1L;

	@ExcelProperty(value="所属楼栋全称")
	private String parentFullname;

	@ExcelProperty(value="楼层名称")
	private String storeyName;

	@ExcelProperty(value="房间名称")
	private String name;

	@ExcelProperty(value="房屋编码")
	private String code;

	@ExcelProperty(value="排序号")
	private Integer ordernumber;

	@ExcelProperty(value="产权年限")
	private String ageLimit;

	@ExcelProperty(value="配套电梯")
	private String elevator;

	@ExcelProperty(value="房屋朝向")
	private String orientation;

	@ExcelProperty(value="房屋类型")
	private String typeName;

	@ExcelProperty(value="状态")
	private String status;

	@ExcelProperty(value="房屋用途")
	private String purpose;

	@ExcelProperty(value="使用面积（平米）")
	private String useArea;

	@ExcelProperty(value="建筑面积（平米）")
	private String floorage;

	@ExcelProperty(value="是否危房")
	private String dangerous;

	@ExcelProperty(value="是否正在施工")
	private String construction;

	@ExcelProperty(value="建造年代")
	private String constructionAge;

	@ExcelProperty(value="租金")
	private String rent;

	@ExcelProperty(value="房屋户型")
	private String layout;

	@ExcelProperty(value="装修程度")
	private String renovation;

	@ExcelProperty(value="管理单位")
	private String belongouinfoName;

	@ExcelProperty(value="房屋价格")
	private String price;

	@ExcelProperty(value="备注")
	private String remarks;

	public String getElevator() {
		if(StrUtil.isEmpty(this.elevator)){
			return StrUtil.EMPTY;
		}
		return "0".equals(this.elevator)?"无":"有";
	}

	public String getDangerous() {
		if(StrUtil.isEmpty(this.dangerous)){
			return StrUtil.EMPTY;
		}
		return "0".equals(this.dangerous)?"否":"是";
	}

	public String getConstruction() {
		if (StrUtil.isEmpty(this.construction)) {
			return StrUtil.EMPTY;
		}
		return "0".equals(this.construction) ? "否" : "是";
	}
}
